package com.xbb.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xbb.entity.dto.StatisticDto;
import com.xbb.mapper.StatisticMapper;
import com.xbb.service.StatisticService;
@Service
public class StatisticServiceImpl implements StatisticService{

	@Autowired
	StatisticMapper statisticMapper;
	
	@Override
	public int updateStaInfoNum(int id) {
		return statisticMapper.updateStaInfoNum(id);
	}

	@Override
	public int addStaInfo() {
		return statisticMapper.addStaInfo();
	}

	
	@Override
	public List<StatisticDto> getStaInfo(StatisticDto statisticDto) {
		return statisticMapper.getStaInfo(statisticDto);
	}

	@Override
	public List<Integer> getPeopleNum(String beginTime, String endTime) {
		return statisticMapper.getPeopleNum(beginTime,endTime);
	}

	@Override
	public List<String> getReadroomName(String beginTime, String endTime) {
		return statisticMapper.getReadroomName(beginTime,endTime);
	}

}
